package com.atwu.wl2022.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;

import java.io.Serializable;
import java.util.Date;


/**
 * <p>
 * 这是文章信息表，记录博客中所有文章
 * </p>
 *
 * @author wule
 * @since 2022-06-12
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "create_date",fill = FieldFill.INSERT)
    private Date createDate;

    @TableField(value = "modified_date",fill = FieldFill.INSERT_UPDATE)
    private Date modifiedDate;

    private String title;

    private String createBy;

    private String summary;

    private String articleContent;

    private String image;

    private Integer articleType;

    private Integer views;

    private Integer likes;

    private Integer isTop;

    private String quoteLink;

    @TableField(value="commentSize")
    private Integer commentSize;

}
